#ifndef STRUCTURES_H_INCLUDED
#define STRUCTURES_H_INCLUDED

/*ERSTELLE DEFAULT-STRUCTURES*/
/*char *p_step_array = values_step();
char *p_schrank_array = values_schrank();
*/
/*START DEFAULT-Values Funktionen*/
struct schrank* values_schrank(void);
struct schrank *p_schrank;
struct schrank *p_schrank_prev;
struct schrank *p_struct_schrank[];


struct ressource* values_ressource(void);
struct ressource *p_ressource;
struct ressource *p_ressource_prev;
struct ressource *p_struct_ressource[];



struct step *values_step(void);
struct step *p_step;
struct step *p_step_prev;
struct step *p_struct_step[];


/*END Funktionen*/
struct schrank
{
    char name[30];
    struct schrank *next_schrank;
    struct schrank *prev_schrank;
};

struct ressource
{
    char name[30];                          /*Name der Ressource [Holz]*/
    float price;                            /*Preis*/
    char entity;                            /*Einheit*/
    struct ressource *next_ressource;
    struct ressource *prev_ressource;
};

struct step
{
    char name[30];                          /*Name des Arbeitsschrittes*/
    struct ressources *p_ressources;        /*Pointer auf die Ressource*/
    //int verbrauch;                        /*Wieviele Einheiten Ressourcen werden fuer diesen Schritt benoetigt?*/
    char time;                              /*Dauer des Arbeitsschrittes*/
    float price;                            /*Kosten fuer den Arbeitsschritt*/
    char ressource[30];
    struct step *next_step;                /*Pointer auf "naechsten" Schritt*/
    struct step *prev_step;
};
#endif // STRUCTURES_H_INCLUDED
